/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package amd.core;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author Latiah Dwi Nurachma
 */
public class CurrentDateAndTime {
    public static String getDateTime(){
        DateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss");
        Date date = new Date();
        return dateFormat.format(date);
    }
}
